#pragma once
#include <exception>

class GridException : std::exception
{
  public:
    GridException(const char* err = "Unknown Error."){this->err = (char*)err;}
    virtual const char* what(){return this->err;}
  protected:
    char* err;
};
